package com.sakila.vo;

import java.util.Collection;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
import com.sakila.pojo.Member;

public class MyMember extends User{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8916798143054215472L;
	private Member member;
	
	public MyMember(String username, String password,
			Collection<? extends GrantedAuthority> authorities) {
		super(username, password, authorities);
	}

	public MyMember(String username, String password,
			Collection<? extends GrantedAuthority> authorities, Member member) {
		super(username, password, authorities);
		this.member = member;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
}
